﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OnlineLibrary.Linq;
namespace OnlineLibrary.Models
{
    public class DataProvider
    {
        private static OnlineLibraryDBDataContext db;   
        
        public static OnlineLibraryDBDataContext Db
        {
            get 
            {
                if (db == null)                   
                    db = new OnlineLibraryDBDataContext();                    
                return db;
            }            
        }
        
    }
}